<?php
$news_id = $this->news_id;
$allCategory = $this->allCategory;
$news = $allCategory[$news_id];
?>
    <div class="customerQuote">
        <div class="customer" id="quotes_header">
            <a class="more" href="#more" target="_blank">XEM THÊM</a>
            <h3><?php echo $news['admin_title']?></h3>
        </div>
        <div style="clear:both"></div>
		<div id="featured" style="margin:0px 20px">
            <?php
            $news_home = $this->top_news;
            if (count($news_home) > 0) {
                $count = 0;
                foreach($news_home as $item):
                    if ($count == 0) {
                ?>
                        <table border="0" cellpadding="5" cellspacing="0">
                            <tr valign="top">
                                <td width="400">
                                    <div>
                                    <?php
                                        $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                        $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                        if ($item['item_image']) {
                                    ?>
                                        <center>
                                            <a href="<?php echo BASE_URL?>/index/index/detail?id=<?php echo $item['item_id']?>">
                                                <img src="<?=ImageUtil::getImage($path,$fileName,390,250, 80, true)?>" border="0" style="max-width:480px;">
                                            </a>
                                        </center>
                                    <?php
                                        }
                                    ?>
                                         <div class="info" >
                                            <h2>
                                                <a href="<?php echo BASE_URL?>/index/index/detail?id=<?php echo $item['item_id']?>&pid=<?php echo $item['category_id']?>">
                                                    <?=$item['item_title']?>
                                                </a>
                                            </h2>
                                            <p><?=$item['item_short_description']?></p>
                                         </div>
                                    </div>
                                </td>
                <?php
                    } else {
                    ?>
                            <h2 style="padding: 3px">
                                &raquo; 
                                <a href="<?php echo BASE_URL?>/index/index/detail?id=<?php echo $item['item_id']?>&pid=<?php echo $item['category_id']?>"">
                                    <?=$item['item_title']?>
                                </a>
                            </h2>
                    <?php
                    }
                    if ($count++ == 0) {
                ?>
                                <td style="border-left:1px dotted #9C9C9C;">
                <?php
                    }
                ?>
                <?php
                endforeach;
                ?>
                                </td>
                            </tr>
                        </table>
            <?php
            }
            ?>
		</div>
    </div>